package rabbit.flt.plugins.zookeeper.server.plugin;

import org.apache.zookeeper.server.ZooKeeperServer;
import rabbit.flt.plugins.common.plugin.SupportPlugin;
import rabbit.flt.plugins.zookeeper.server.ZooKeeperMetricsTask;

import java.lang.reflect.Method;

public class ZookeeperServerPlugin extends SupportPlugin {

    @Override
    public Object[] before(Object objectEnhanced, Method method, Object[] args) {
        ZooKeeperMetricsTask.serverStarted((ZooKeeperServer) objectEnhanced);
        return super.before(objectEnhanced, method, args);
    }
}
